import Vue from 'vue';
import Router from 'vue-router';// 假设这是 Main 组件的路径
import Login from '@/pages/Login.vue';
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      redirect: '/login'
    }
  ]
});